﻿using System.Data;
using Project.DTO;

namespace Project.IBIZ
{
    /// <summary>
    /// Interface define business method(s) for logging in the system
    /// </summary>
    public interface ILoginBIZ
    {
        /// <summary>
        /// Check for a valid user
        /// </summary>
        /// <param name="userInfo">User object</param>
        /// <returns>0: Incorrect info. 1:Valid user. 2:Inactive account</returns>
        int IsValidUser(User userInfo);
    }
}
